package com.eden.websocket.domain;

import com.eden.common.annotation.Excel;
import com.eden.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 聊天消息列对象 chat_list
 *
 * @author jiaoyang
 * @date 2021-03-06
 */
public class ChatList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 聊天列表id
     */
    private Long chatId;

    /**
     * 聊天发起方
     */
    private String chatFromLoginName;
    /**
     * 聊天发起方用户名
     */
    private String chatFromUserName;
    /**
     * 聊天发起方用户头像
     */
    private String fromUserAvatar;

    /**
     * 聊天对象
     */
    @Excel(name = "聊天对象")
    private String chatToUserName;

    /**
     * 聊天对象登录账号
     */
    private String chatToLoginName;

    /**
     * 消息未读数
     */
    @Excel(name = "消息未读数")
    private Integer noReadCount;

    /**
     * 聊天对象头像地址
     */
    @Excel(name = "聊天对象头像地址")
    private String toUserAvatar;

    public String getChatFromUserName() {
        return chatFromUserName;
    }

    public void setChatFromUserName(String chatFromUserName) {
        this.chatFromUserName = chatFromUserName;
    }

    public String getFromUserAvatar() {
        return fromUserAvatar;
    }

    public void setFromUserAvatar(String fromUserAvatar) {
        this.fromUserAvatar = fromUserAvatar;
    }

    public void setChatId(Long chatId) {
        this.chatId = chatId;
    }

    public Long getChatId() {
        return chatId;
    }

    public void setChatFromLoginName(String chatFromLoginName) {
        this.chatFromLoginName = chatFromLoginName;
    }

    public String getChatFromLoginName() {
        return chatFromLoginName;
    }

    public void setChatToUserName(String chatToUserName) {
        this.chatToUserName = chatToUserName;
    }

    public String getChatToUserName() {
        return chatToUserName;
    }

    public void setChatToLoginName(String chatToLoginName) {
        this.chatToLoginName = chatToLoginName;
    }

    public String getChatToLoginName() {
        return chatToLoginName;
    }

    public void setNoReadCount(Integer noReadCount) {
        this.noReadCount = noReadCount;
    }

    public Integer getNoReadCount() {
        return noReadCount;
    }

    public void setToUserAvatar(String toUserAvatar) {
        this.toUserAvatar = toUserAvatar;
    }

    public String getToUserAvatar() {
        return toUserAvatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("chatId", getChatId())
                .append("chatFromLoginName", getChatFromLoginName())
                .append("chatToUserName", getChatToUserName())
                .append("chatToLoginName", getChatToLoginName())
                .append("noReadCount", getNoReadCount())
                .append("createBy", getCreateBy())
                .append("toUserAvatar", getToUserAvatar())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}